import { CustomerStatusEnum } from '@h5app/sheep/interface/'

type ColorKey = 'label' | 'bg'

type ColorInterface<T> = Record<T, Record<ColorKey, string>>
export function useColor() {
  const CustomerStatusColor: ColorInterface<CustomerStatusEnum> = {
    [CustomerStatusEnum.报备审批中]: { label: '#FF7A21FF', bg: '#FF7A2133' },
    [CustomerStatusEnum.报备审批通过]: { label: '#AC9163FF', bg: '#AC916333' },
    [CustomerStatusEnum.已提交]: { label: '#00C7C9FF', bg: '#00C7C933' },
    [CustomerStatusEnum.已流失]: { label: '#0000004D', bg: '#0000001A' },
  }

  return { CustomerStatusColor }
}
